I was on dilaudid after shoulder surgery, and it really was the best painkiller - least side effects and most effective in blocking pain. However, I took a much smaller dose for a much shorter period of time than you, and so had no trouble getting off.
I do however have quite extensive experience tapering off other medications and experienced much of what you are right now: clearly irrational emotional swings/thoughts, all the time knowing this wasn't the "real me" talking.
I can't say it gave me true comfort, but thinking about it rationally, realizing that the anxieties/emotions I was facing were not the result of any real threat/fear/situation was somewhat helpful.
From previous experiences tapering off meds, I also knew it wouldn't last forever: I just made myself as comfortable as possible and waited it out.
Watching mindless TV (food network worked well for me) also was a big help. I'm not a big tv watcher for the fact that you're "zoned out" while watching, but it works great when going through this kind of crap.
I know what you're going through sucks, but you'll get through it.
You might even try tapering more slowly - like ridiculously slowly. I became quite an expert in cutting pills myself.